﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace BHair.bb
{
    public partial class XtraReportxsmx : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReportxsmx()
        {
            InitializeComponent();
        }
        public XtraReportxsmx(DataSet ds) 
        {
            InitializeComponent();
            SetDataBind(ds);
        }
        private void SetDataBind(DataSet ds) 
        {
            string time = DateTime.Now.ToLongDateString();
            this.xrLabel15.Text = time;
            DataSource = ds;
            this.xrLabel8.DataBindings.Add("Text", DataSource, "pid");
            this.xrLabel9.DataBindings.Add("Text", DataSource, "iname");
            this.xrLabel10.DataBindings.Add("Text", DataSource, "pdnum");
            this.xrLabel11.DataBindings.Add("Text", DataSource, "pmoney");
            this.xrLabel12.DataBindings.Add("Text", DataSource, "ename");
            this.xrLabel13.DataBindings.Add("Text", DataSource, "pdate");
        }
    }
}
